package ua.kharkov.knure.mikhaylov.st4.db.entities;

import java.io.Serializable;

/** 
 * Valuta db entity
 * 
 * @author Saint
 *
 */
public class Valuta implements Serializable {

	private static final long serialVersionUID = 8425786172598254680L;

	private long id;
	private String fullName;
	private String shortName;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	@Override
	public boolean equals(Object obj) {
		if (!(obj instanceof Valuta))
			return false;
		Valuta other = (Valuta) obj;
		return (id == other.id && fullName.equals(other.fullName) && shortName
				.equals(other.shortName));
	}
}
